From: Giovanni Campagna Date: Wed, 24 Apr 2013 19:38:00 +0000 (+0200) Subject: Keyboard: clear currentSource after destruction X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4285 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=aef70152de8a2a7b5a8b558514566a7f6cd3746b;p=gnome-shell.git Keyboard: clear currentSource after destruction StLabel doesn't like that we set its properties after destructions, and this would happen in currentInputSourceChanged() at the end, when setting the ornament. --- diff --git a/js/ui/status/keyboard.js b/js/ui/status/keyboard.js index 28e5b861a..4880fd2bb 100644 --- a/js/ui/status/keyboard.js +++ b/js/ui/status/keyboard.js @@ -459,6 +459,7 @@ const InputSourceIndicator = new Lang.Class({ this._inputSources = {}; this._ibusSources = {}; + this._currentSource = null; let inputSourcesByShortName = {};